Foundational Property-Based Testing

نویسندگان

  • Zoe Paraskevopoulou
  • Catalin Hritcu
  • Maxime Dénès
  • Leonidas Lampropoulos
  • Benjamin C. Pierce
چکیده

Integrating property-based testing with a proof assistant creates an interesting opportunity: reusable or tricky testing code can be formally verified using the proof assistant itself. In this work we introduce a novel methodology for formally verified property-based testing and implement it as a foundational verification framework for QuickChick, a port of QuickCheck to Coq. Our framework enables one to verify that the executable testing code is testing the right Coq property. To make verification tractable, we provide a systematic way for reasoning about the set of outcomes a random data generator can produce with non-zero probability, while abstracting away from the actual probabilities. Our framework is firmly grounded in a fully verified implementation of QuickChick itself, using the same underlying verification methodology. We also apply this methodology to a complex case study on testing an information-flow control abstract machine, demonstrating that our verification methodology is modular and scalable and that it requires minimal changes to existing code.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Property-Based Testing via Proof Reconstruction: Work-in-progress

Property-based testing is a technique for validating code against an executable specification by automatically generating test-data. From its original use in programming languages, this technique has now spread to most major proof assistants to complement theorem proving with a preliminary phase of conjecture testing. We present a proof theoretical reconstruction of this style of testing for re...

متن کامل

Meanings of Foundational Virtue in Islamic Mystical Ethics: A Case Study of Honesty

In mystical ethics, some virtues have a foundational role in relation to other virtues; that is, other virtues are in some ways dependent on, conditional to, or rooted in them. This is a gradational concept, and therefore one can speak of foundational and more foundational among foundational virtues in mysticism. Honesty is the most foundational virtue in mystical ethics, and other virtues are ...

متن کامل

Evolution of a Foundational Model of Physiology: Symbolic Representation for Functional Bioinformatics

We describe the need for a Foundational Model of Physiology (FMP) as a reference ontology for "functional bioinformatics". The FMP is intended to support symbolic lookup, logical inference and mathematical analysis by integrating descriptive, qualitative and quantitative functional knowledge. The FMP will serve as a symbolic representation of biological functions initially pertaining to human p...

متن کامل

Measurement and Modelling of the Rubber Resilience based on Ultrasonic Non-destructive Testing in Tires

In tire industry, it is very crucial to evaluate physical and mechanical properties of the rubber which is used for production of the tire, to ensure the quality of the final product. Resilience is an important property of a rubber, which cannot be evaluated through direct measurement in production cycle in this industry. Therefore, non-destructive ultrasonic testing, which has been used in man...

متن کامل

Property Testing of Massively Parametrized Problems - A Survey

We survey here property testing results for the so called ’massively parametrized’ model (or problems). This paper is based on a survey talk gave at the workshop on property testing, Beijing, Jan 2010.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2015